Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:25-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=12998 2011-12-20T09:49:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=57709#p57709 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:49 am


]]>
2011-12-07T01:02:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=55391#p55391 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: December 7, 2011, 1:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:02 am


]]>
2011-11-05T19:25:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=51765#p51765 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: November 5, 2011, 8:25 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:25 pm


]]>
2011-10-29T20:34:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=49860#p49860 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: October 29, 2011, 9:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:34 pm


]]>
2011-10-17T15:38:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=47654#p47654 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: October 17, 2011, 1:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:38 pm


]]>
2011-10-11T14:34:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=46054#p46054 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: October 11, 2011, 12:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:34 pm


]]>
2011-10-03T15:46:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=44185#p44185 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: October 3, 2011, 1:46 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:46 pm


]]>
2011-10-03T03:40:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=42892#p42892 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: October 3, 2011, 1:40 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:40 am


]]>
2011-09-27T05:25:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=41138#p41138 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: September 27, 2011, 3:25 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:25 am


]]>
2011-09-26T21:02:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=39894#p39894 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: September 26, 2011, 7:02 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:02 pm


]]>
2011-09-17T16:19:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=38038#p38038 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: September 17, 2011, 2:19 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:19 pm


]]>
2011-09-14T01:27:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=36619#p36619 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: September 13, 2011, 11:27 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:27 am


]]>
2011-09-13T12:02:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=35347#p35347 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: September 13, 2011, 10:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:02 pm


]]>
2011-08-15T14:11:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=31454#p31454 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: August 15, 2011, 3:11 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\cache.inc.php ?php /** * s2Member's caching routines. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Cache * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_cache" ) ) { /** * s2Member's caching routines. * * @package s2Member\Cache * @since 3.5 */ class c_ws_plugin__s2member_cache { /** * Page links needed for Constants. * * Page links are cached into the s2Member options on 15 min intervals. * This allows the API Constants to provide quick access to them without being * forced to execute {@link http://codex.wordpress.org/Function_Ref ... _page_link get_page_link()} * all the time, which piles up DB queries. * * @package s2Member\Cache * @since 3.5 * * @return array Array of cached Page links. */ public static function cached_page_links ( ) { do_action ( "ws_plugin__s2member_before_cached_page_links" , get_defined_vars ( ) ) ; /**/ $login_welcome_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ; $membership_options_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ; /**/ $login_welcome_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] ; $membership_options_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] ; /**/ $links = array ( "login_welcome_page" = "" , "membership_options_page" = "" , "file_download_limit_exceeded_page" = "" ) ; /**/ if ( $login_welcome_page_cache [ "page" ] === $login_welcome_page && $login_welcome_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $login_welcome_page_cache [ "link" ] ) { $links [ "login_welcome_page" ] = $login_welcome_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "page" ] = $login_welcome_page ; $links [ "login_welcome_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "link" ] = get_page_link ( $login_welcome_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $membership_options_page_cache [ "page" ] === $membership_options_page && $membership_options_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $membership_options_page_cache [ "link" ] ) { $links [ "membership_options_page" ] = $membership_options_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "page" ] = $membership_options_page ; $links [ "membership_options_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "link" ] = get_page_link ( $membership_options_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $file_download_limit_exceeded_page_cache [ "page" ] === $file_download_limit_exceeded_page && $file_download_limit_exceeded_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $file_download_limit_exceeded_page_cache [ "link" ] ) { $links [ "file_download_limit_exceeded_page" ] = $file_download_limit_exceeded_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "page" ] = $file_download_limit_exceeded_page ; $links [ "file_download_limit_exceeded_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "link" ] = get_page_link ( $file_download_limit_exceeded_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $cache_needs_updating ) /* Cache is also reset dynamically during back-end option updates. */ { update_option ( "ws_plugin__s2member_cache" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] ) ; } /**/ $scheme = ( is_ssl ( ) ) ? "https" : "http" ; /* SSL mode? */ foreach ( $links as & $link ) /* Conversions for SSL and non-SSL mode. */ $link = preg_replace ( "/^http(s)?\:\/\//i" , $scheme . "://" , $link ) ; /**/ return apply_filters ( "ws_plugin__s2member_cached_page_links" , $links , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\cache.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:11 pm


]]>
2011-07-11T17:27:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=27662#p27662 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: July 11, 2011, 6:27 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\cache.inc.php ?php /** * s2Member's caching routines. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Cache * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_cache" ) ) { /** * s2Member's caching routines. * * @package s2Member\Cache * @since 3.5 */ class c_ws_plugin__s2member_cache { /** * Page links needed for Constants. * * Page links are cached into the s2Member options on 15 min intervals. * This allows the API Constants to provide quick access to them without being * forced to execute {@link http://codex.wordpress.org/Function_Ref ... _page_link get_page_link()} * all the time, which piles up DB queries. * * @package s2Member\Cache * @since 3.5 * * @return array Array of cached Page links. */ public static function cached_page_links ( ) { do_action ( "ws_plugin__s2member_before_cached_page_links" , get_defined_vars ( ) ) ; /**/ $login_welcome_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ; $membership_options_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ; /**/ $login_welcome_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] ; $membership_options_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] ; /**/ $links = array ( "login_welcome_page" = "" , "membership_options_page" = "" , "file_download_limit_exceeded_page" = "" ) ; /**/ if ( $login_welcome_page_cache [ "page" ] === $login_welcome_page && $login_welcome_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $login_welcome_page_cache [ "link" ] ) { $links [ "login_welcome_page" ] = $login_welcome_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "page" ] = $login_welcome_page ; $links [ "login_welcome_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "link" ] = get_page_link ( $login_welcome_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $membership_options_page_cache [ "page" ] === $membership_options_page && $membership_options_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $membership_options_page_cache [ "link" ] ) { $links [ "membership_options_page" ] = $membership_options_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "page" ] = $membership_options_page ; $links [ "membership_options_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "link" ] = get_page_link ( $membership_options_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $file_download_limit_exceeded_page_cache [ "page" ] === $file_download_limit_exceeded_page && $file_download_limit_exceeded_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $file_download_limit_exceeded_page_cache [ "link" ] ) { $links [ "file_download_limit_exceeded_page" ] = $file_download_limit_exceeded_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "page" ] = $file_download_limit_exceeded_page ; $links [ "file_download_limit_exceeded_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "link" ] = get_page_link ( $file_download_limit_exceeded_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $cache_needs_updating ) /* Cache is also reset dynamically during back-end option updates. */ { update_option ( "ws_plugin__s2member_cache" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] ) ; } /**/ $scheme = ( is_ssl ( ) ) ? "https" : "http" ; /* SSL mode? */ foreach ( $links as & $link ) /* Conversions for SSL and non-SSL mode. */ $link = preg_replace ( "/^http(s)?\:\/\//i" , $scheme . "://" , $link ) ; /**/ return apply_filters ( "ws_plugin__s2member_cached_page_links" , $links , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\cache.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:27 pm


]]>
2011-07-11T15:14:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=27043#p27043 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: July 11, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\cache.inc.php ?php /** * s2Member's caching routines. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Cache * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_cache" ) ) { /** * s2Member's caching routines. * * @package s2Member\Cache * @since 3.5 */ class c_ws_plugin__s2member_cache { /** * Page links needed for Constants. * * Page links are cached into the s2Member options on 15 min intervals. * This allows the API Constants to provide quick access to them without being * forced to execute {@link http://codex.wordpress.org/Function_Ref ... _page_link get_page_link()} * all the time, which piles up DB queries. * * @package s2Member\Cache * @since 3.5 * * @return array Array of cached Page links. */ public static function cached_page_links ( ) { do_action ( "ws_plugin__s2member_before_cached_page_links" , get_defined_vars ( ) ) ; /**/ $login_welcome_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_welcome_page" ] ; $membership_options_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "file_download_limit_exceeded_page" ] ; /**/ $login_welcome_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] ; $membership_options_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] ; $file_download_limit_exceeded_page_cache = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] ; /**/ $links = array ( "login_welcome_page" = "" , "membership_options_page" = "" , "file_download_limit_exceeded_page" = "" ) ; /**/ if ( $login_welcome_page_cache [ "page" ] === $login_welcome_page && $login_welcome_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $login_welcome_page_cache [ "link" ] ) { $links [ "login_welcome_page" ] = $login_welcome_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "page" ] = $login_welcome_page ; $links [ "login_welcome_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "login_welcome_page" ] [ "link" ] = get_page_link ( $login_welcome_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $membership_options_page_cache [ "page" ] === $membership_options_page && $membership_options_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $membership_options_page_cache [ "link" ] ) { $links [ "membership_options_page" ] = $membership_options_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "page" ] = $membership_options_page ; $links [ "membership_options_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "membership_options_page" ] [ "link" ] = get_page_link ( $membership_options_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $file_download_limit_exceeded_page_cache [ "page" ] === $file_download_limit_exceeded_page && $file_download_limit_exceeded_page_cache [ "time" ] = strtotime ( "-15 minutes" ) && $file_download_limit_exceeded_page_cache [ "link" ] ) { $links [ "file_download_limit_exceeded_page" ] = $file_download_limit_exceeded_page_cache [ "link" ] ; } else /* Otherwise, we need to query the database using get_page_link() and update the cache. */ { $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "time" ] = time ( ) ; $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "page" ] = $file_download_limit_exceeded_page ; $links [ "file_download_limit_exceeded_page" ] = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] [ "file_download_limit_exceeded_page" ] [ "link" ] = get_page_link ( $file_download_limit_exceeded_page ) ; /**/ $cache_needs_updating = true ; /* Flag for cache update. */ } /**/ if ( $cache_needs_updating ) /* Cache is also reset dynamically during back-end option updates. */ { update_option ( "ws_plugin__s2member_cache" , $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "cache" ] ) ; } /**/ $scheme = ( is_ssl ( ) ) ? "https" : "http" ; /* SSL mode? */ foreach ( $links as & $link ) /* Conversions for SSL and non-SSL mode. */ $link = preg_replace ( "/^http(s)?\:\/\//i" , $scheme . "://" , $link ) ; /**/ return apply_filters ( "ws_plugin__s2member_cached_page_links" , $links , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\cache.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 3:14 pm


]]>
2011-07-09T05:40:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12998&p=25292#p25292 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\cache.inc.php
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 5:40 am


]]>