Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function _doreplace(&$event, $param) {
*/
function _cache_control(&$event, $param) {
global $conf;
global $ID;

$cache =& $event->data;

Expand All @@ -212,6 +213,15 @@ function _cache_control(&$event, $param) {
$const = p_get_metadata($cache->page, 'plugin_const');

//force initial purge
if (is_string($const)) {
// something went wrong in the cache, fix the cache value
// and force invalidate for the time being
$const = array(
'invalidate' => true
);

p_set_metadata($ID, array( 'plugin_const' => $const), false, true);
}
if (!isset($const['invalidate'])) {
$const['invalidate'] = true;
}
Expand Down