Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Vad exakt händer när man rensar cachen i Lemoon 4?

2010-10-21 12:49:02 Paulo

Ett tekniskt inblick i hur detta fungera hade varit super! /P

All replies

  • 2010-11-01 11:30:30 Paulo

    ?

    And please translate the above post and subject to english :)

    thx,

    p

  • 2011-03-03 12:45:41 Paulo

    Still superinterested in what happens behind the scene when clearing the cache inside lemoon admin. Any insight? anyone? Thanks,

    P

  • 2011-03-08 22:20:22 Linus

    All of the service classes in Lemoon make heavy use of the cache to improve performance and reduce roundtrips to the database. As an example, almost all methods calls in the ContentService will return data from the internal cache instead of the database. 

    When the clear cache function is called, all objects in the internal cache will be removed and subsequent calls to methods in the service classes will hit the database.

    Note that the clear cache method only removes items put in the cache by lemoon, any items placed in the cache by your custom code will not be removed (this is why the items in cache count almsot never reaches 0 even after the cache is cleared).