Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -854,10 +854,10 @@ |
855 | 855 | // Cache hit? |
856 | 856 | if ( $cached_def !== false && $cached_def !== null ) { |
857 | 857 | |
858 | | - wfDebug( "Cache hit: Got formdefinition $cachekey from cache\n" ); |
| 858 | + wfDebug( "Cache hit: Got form definition $cachekey from cache\n" ); |
859 | 859 | return $cached_def; |
860 | 860 | } else { |
861 | | - wfDebug( "Cache miss: Formdefinition $cachekey not found in cache\n" ); |
| 861 | + wfDebug( "Cache miss: Form definition $cachekey not found in cache\n" ); |
862 | 862 | } |
863 | 863 | |
864 | 864 | } |
— | — | @@ -895,11 +895,11 @@ |
896 | 896 | if ( $sfgCacheFormDefinitions && $form_id !== null ) { |
897 | 897 | |
898 | 898 | if ( $output->getCacheTime() == -1 ) { |
899 | | - wfDebug( "Caching disabled for formdefinition $cachekey\n" ); |
| 899 | + wfDebug( "Caching disabled for form definition $cachekey\n" ); |
900 | 900 | self::purgeCache( $form_article ); |
901 | 901 | } else { |
902 | 902 | wfGetMainCache()->add( $cachekey, $form_def ); |
903 | | - wfDebug( "Cached formdefinition $cachekey\n" ); |
| 903 | + wfDebug( "Cached form definition $cachekey\n" ); |
904 | 904 | } |
905 | 905 | |
906 | 906 | } |
— | — | @@ -908,20 +908,19 @@ |
909 | 909 | } |
910 | 910 | |
911 | 911 | /** |
912 | | - * Deletes the formdefinition associated with the given wikipage from the |
913 | | - * main cache. |
| 912 | + * Deletes the form definition associated with the given wiki page |
| 913 | + * from the main cache. |
914 | 914 | * |
915 | 915 | * @param Page $wikipage |
916 | 916 | * @return Bool |
917 | 917 | */ |
918 | 918 | public static function purgeCache ( &$wikipage ) { |
919 | | - |
920 | 919 | if ( $wikipage->getTitle()->getNamespace() == SF_NS_FORM ) { |
921 | 920 | |
922 | 921 | $key = wfMemcKey('ext.SemanticForms.formdefinition', $wikipage->getId() ); |
923 | 922 | |
924 | 923 | if ( self::getFormCache()->delete($key) ) { |
925 | | - wfDebug( "Deleted cached formdefinition $key.\n" ); |
| 924 | + wfDebug( "Deleted cached form definition $key.\n" ); |
926 | 925 | } |
927 | 926 | } |
928 | 927 | |