changeset 683:a2beb43407ea

deprecate usage of CacheEntry without explicit scope
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 21 May 2006 18:18:06 +0200
parents 1314fdb74689
children 9fb4124ea499
files MoinMoin/caching.py docs/CHANGES
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/caching.py	Sun May 21 18:14:30 2006 +0200
+++ b/MoinMoin/caching.py	Sun May 21 18:18:06 2006 +0200
@@ -27,7 +27,7 @@
                           'farm' - a cache for the whole farm
         """
         self.request = request
-        if scope == 'page_or_wiki': # XXX split and refactor later
+        if scope == 'page_or_wiki': # XXX DEPRECATED, remove later
             if isinstance(arena, str):
                 self.arena_dir = os.path.join(request.cfg.cache_dir, request.cfg.siteid, arena)
                 filesys.makeDirs(self.arena_dir)
--- a/docs/CHANGES	Sun May 21 18:14:30 2006 +0200
+++ b/docs/CHANGES	Sun May 21 18:18:06 2006 +0200
@@ -66,6 +66,7 @@
       will cache into a common directory for all wikis in the same farm, if you
       specify 'wiki', it will use a cache directory per wiki and if you specify
       'item', it will use a cache directory per item (== per page).
+      Creating a CacheEntry without explicit scope is DEPRECATED.
 
   New Features: