Ticket #1124 (closed defect: worksforme)

Opened 2 years ago

Last modified 16 months ago

Keep Cache not working

Reported by: miklb Owned by:
Priority: major Milestone: 0.8
Component: Habari Core Software Version: SVN
Keywords: caching Cc:

Description

It was suggested to me by BigJibby to file a ticket on keep cache not working and being an ass after I reported the twitter plugin not working for me (clearing the cache on the option set in the plugin).

Also said I should ask what the intended behavior of the keep cache system is, as it differs between apc and file caches…

Change History

comment:1 Changed 16 months ago by anon

  • Keywords caching added; cache removed

comment:2 Changed 16 months ago by chrismeller

  • Status changed from new to closed
  • Resolution set to worksforme
* @param boolean $keep If true, retain the cache value even after expiry but report the cache as expired

Seems fairly straightforward to me. It's marked as expired, but not physically removed from the cache (unless of course you manually delete everything).

In FileCache:

private function record_fresh( $record )
{
	if ( $record['expires'] > time() || $record['keep'] ) {
		return true;
	}
	...
}

APCCache appears to store them separately, since APC handles expiring entries on its own. They are stored with the ':keepcache' prefix with an expiration of 0, which presumably means no expiration in APC land.

So please verify and re-open this ticket if you can determine how it's not working.

comment:3 Changed 16 months ago by anon

  • Milestone changed from Undetermined to 0.8
Note: See TracTickets for help on using tickets.