Didn't know exactly what title to write. There are a couple of issues and I've noticed them when using the System - Page Cache
plugin.
You'll need to use the File
Cache Handler (this is the default though) in Global Configuration.
Extensions > Plugins
and edit the System - Page Cache
plugin.Enabled
.Not a blank page :)
Blank page!
3.7.0 stable
Looking in the cache/page
folder I can see that locking the cache files has written 0 bytes to each file. Now, because we have excluded the page from caching, the store()
part in the onAfterRespond()
event of the System - Page Cache plugin won't run and we're stuck with these files.
The blank page is rendered because of the code in the onAfterInitialize()
event:
$data = $this->_cache->get($this->_cache_key);
if ($data !== false)
In this case (cache files exist & they're 0 length), $data is null and the code runs. Now, I'm guessing this could be solved by:
if ($data !== false && $data !== null)
But, if you dig deeper in the code, the issue is caused by JCache::getWorkarounds() - $body
is null and if there's no data in the cache file, it will return the $body. If we default $body to false
the issue should be resolved. Thoughts?
Labels |
Added:
?
|
I really should be searching more before posting
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-28 08:21:00 |
Closed_By | ⇒ | brianteeman |
see #15592