Changeset 3019875
- Timestamp:
- 01/10/2024 02:00:01 PM (2 years ago)
- Location:
- a-faster-load-textdomain
- Files:
-
- 6 edited
- 1 copied
-
tags/2.2.4 (copied) (copied from a-faster-load-textdomain/trunk)
-
tags/2.2.4/a-faster-load-textdomain.php (modified) (2 diffs)
-
tags/2.2.4/includes/class-afld-cachehandler.php (modified) (2 diffs)
-
tags/2.2.4/readme.txt (modified) (2 diffs)
-
trunk/a-faster-load-textdomain.php (modified) (2 diffs)
-
trunk/includes/class-afld-cachehandler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
a-faster-load-textdomain/tags/2.2.4/a-faster-load-textdomain.php
r3007494 r3019875 2 2 /** 3 3 * Plugin Name: A faster load_textdomain 4 * Version: 2.2. 34 * Version: 2.2.4 5 5 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file. 6 6 * Author: Per Soderlind … … 55 55 $cache_handler = new \AFLD_CacheHandler( $cache_path, 'mo' ); 56 56 57 if ( $cache_handler->failed ) { 58 // If the cache directory could not be created, return false. 59 return false; 60 } 61 57 62 // Get the cached data for the MO file. 58 63 $data = $cache_handler->get_cache_data( $mofile ); -
a-faster-load-textdomain/tags/2.2.4/includes/class-afld-cachehandler.php
r3007494 r3019875 17 17 */ 18 18 class AFLD_CacheHandler { 19 20 /** 21 * Whether the cache path could be created. 22 * 23 * @var bool 24 */ 25 public $failed = false; 26 19 27 /** 20 28 * Path to the cache directory. … … 46 54 * 47 55 * @param string $cache_path Path to the cache directory. 48 * @throws \InvalidArgumentException If an invalid cache path is provided.49 56 */ 50 57 private function set_cache_path( $cache_path ) { 51 if ( ! is_dir( $cache_path ) ) { 52 throw new \InvalidArgumentException( 'Invalid cache path provided' ); 53 } 58 // Ensure cache directory exists. 59 $this->failed = ! wp_mkdir_p( $cache_path ); 54 60 55 61 $this->cache_path = $cache_path; -
a-faster-load-textdomain/tags/2.2.4/readme.txt
r3007494 r3019875 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4 7 Stable tag: 2.2. 37 Stable tag: 2.2.4 8 8 Donate link: https://paypal.me/PerSoderlind 9 9 License: GPLv2 or later … … 58 58 59 59 == Changelog == 60 61 = 2.2.4 = 62 63 * Fail gracefully if cache directory can't be created. 60 64 61 65 = 2.2.3 = -
a-faster-load-textdomain/trunk/a-faster-load-textdomain.php
r3007494 r3019875 2 2 /** 3 3 * Plugin Name: A faster load_textdomain 4 * Version: 2.2. 34 * Version: 2.2.4 5 5 * Description: Cache the .mo file as an PHP array, and load the array instead of the .mo file. 6 6 * Author: Per Soderlind … … 55 55 $cache_handler = new \AFLD_CacheHandler( $cache_path, 'mo' ); 56 56 57 if ( $cache_handler->failed ) { 58 // If the cache directory could not be created, return false. 59 return false; 60 } 61 57 62 // Get the cached data for the MO file. 58 63 $data = $cache_handler->get_cache_data( $mofile ); -
a-faster-load-textdomain/trunk/includes/class-afld-cachehandler.php
r3007494 r3019875 17 17 */ 18 18 class AFLD_CacheHandler { 19 20 /** 21 * Whether the cache path could be created. 22 * 23 * @var bool 24 */ 25 public $failed = false; 26 19 27 /** 20 28 * Path to the cache directory. … … 46 54 * 47 55 * @param string $cache_path Path to the cache directory. 48 * @throws \InvalidArgumentException If an invalid cache path is provided.49 56 */ 50 57 private function set_cache_path( $cache_path ) { 51 if ( ! is_dir( $cache_path ) ) { 52 throw new \InvalidArgumentException( 'Invalid cache path provided' ); 53 } 58 // Ensure cache directory exists. 59 $this->failed = ! wp_mkdir_p( $cache_path ); 54 60 55 61 $this->cache_path = $cache_path; -
a-faster-load-textdomain/trunk/readme.txt
r3007494 r3019875 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4 7 Stable tag: 2.2. 37 Stable tag: 2.2.4 8 8 Donate link: https://paypal.me/PerSoderlind 9 9 License: GPLv2 or later … … 58 58 59 59 == Changelog == 60 61 = 2.2.4 = 62 63 * Fail gracefully if cache directory can't be created. 60 64 61 65 = 2.2.3 =
Note: See TracChangeset
for help on using the changeset viewer.