{"id":21840223,"url":"https://github.com/gocom/rah_memcached","last_synced_at":"2025-04-14T10:51:14.743Z","repository":{"id":14949798,"uuid":"17674448","full_name":"gocom/rah_memcached","owner":"gocom","description":"Store parts of Textpattern CMS templates in Memcached","archived":false,"fork":false,"pushed_at":"2022-04-22T18:22:35.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:04:50.434Z","etag":null,"topics":["memcached","php","textpattern","textpattern-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jstirnaman/BibApp","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gocom.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":"CONTRIBUTING.textile","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.paypal.me/jukkasvahn"]}},"created_at":"2014-03-12T16:39:50.000Z","updated_at":"2022-08-12T20:42:39.000Z","dependencies_parsed_at":"2022-09-12T00:30:21.781Z","dependency_job_id":null,"html_url":"https://github.com/gocom/rah_memcached","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_memcached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_memcached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_memcached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_memcached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocom","download_url":"https://codeload.github.com/gocom/rah_memcached/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868838,"owners_count":21174754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["memcached","php","textpattern","textpattern-plugin"],"created_at":"2024-11-27T21:25:16.402Z","updated_at":"2025-04-14T10:51:14.722Z","avatar_url":"https://github.com/gocom.png","language":"PHP","funding_links":["https://www.paypal.me/jukkasvahn"],"categories":[],"sub_categories":[],"readme":"h1. rah_memcached\n\n\"Download\":https://github.com/gocom/rah_memcached/releases | \"Packagist\":https://packagist.org/packages/rah/rah_memcached | \"Issues\":https://github.com/gocom/rah_memcached/issues\n\nA plugin for \"Textpattern CMS\":https://textpattern.com that stores parts of your templates in \"Memcached\":https://memcached.org/, a distributed in-memory key-value caching system.\n\nh2. Install\n\nUsing \"Composer\":https://getcomposer.org:\n\nbc. $ composer require rah/rah_memcached\n\nOr \"download\":https://github.com/gocom/rah_memcached/releases an installer package.\n\nh2. Basics\n\nThe plugin, rah_memcached, introduces a new container tag to Textpattern's arsenal. The tag stores the wrapped content, and \"variables\":https://docs.textpattern.com/tags/variable set within it, in Memcached's in-memory storage.\n\nbc. \u003crah::memcached\u003e\n    \u003ctxp:variable name=\"variable1\" value=\"value\" /\u003e\n    \u003ctxp:article_custom limit=\"200\"\u003e\n        \u003ctxp:title /\u003e\n    \u003c/txp:article_custom\u003e\n\u003c/rah::memcached\u003e\n\nOn subsequent calls the resulting output markup and variables will be loaded from memory, skipping template parsing and code execution, speeding up your site and alleviating database load.\n\nh2. Requirements\n\n* Textpattern \u003e= 4.7.0.\n* PHP \u003e= 8.1.0.\n* \"Memcached\":https://secure.php.net/manual/en/book.memcached.php PHP extension.\n* \"libmemcached\":https://libmemcached.org/ client library.\n* \"Memcached\":https://memcached.org/ server.\n\nh2. Configuration\n\nConnected server can be configured through Textpattern's @textpattern/config.php@ file:\n\nbc. define('RAH_MEMCACHED_HOST', 'localhost');\ndefine('RAH_MEMCACHED_PORT', 11211);\n\nh2. Attributes\n\nbc. \u003crah::memcached\u003e\n    ...contained statement...\n\u003c/rah::memcached\u003e\n\nThe tag is a container and attributes for it follow.\n\n*name*\nSets a name, a key, for the cached item. The given name is used identify the item, and save and fetch it from the storage. If a _name_ is not defined, it's automatically created by hashing the given contained markup. While the name is optional, giving it is more efficient and avoids any potential hash collisions.\nDefault: _undefined_ Example: @name=\"mykey\"@\n\n*expires*\nTime in seconds it takes to the stored item to expire and be refreshed. If zero (@0@), the cache is kept in memory until the cache is flushed or Memcached is restarted.\nDefault: @0@ Example: @expires=\"3600\"@\n\n*persist*\nIf enabled, ignores content updates as set by site's @lastmod@ timestamp. By default, the cache is invalidated when Texptatern's lastmod timestamp is updated, which is done when any content is updated.\nDefault: _disabled_ Example: @persist@\n\nh2. Examples\n\nh3. Store section navigation in memory\n\nbc. \u003crah::memcached name=\"navigation\"\u003e\n    \u003ctxp:section_list wraptag=\"ul\" break=\"li\"\u003e\n        \u003ctxp:section /\u003e\n    \u003c/txp:section_list\u003e\n\u003c/rah::memcached\u003e\n\nh3. Store variables in memory\n\nbc.. \u003crah::memcached\u003e\n    \u003ctxp:variable name=\"color\" value=\"red\" /\u003e\n    \u003ctxp:variable name=\"size\" value=\"small\" /\u003e\n\u003c/rah::memcached\u003e\n\nColor: \u003ctxp:variable name=\"color\" /\u003e\nSize: \u003ctxp:variable name=\"size\" /\u003e\n\nh2. Changelog\n\nh3. Version 0.3.0 - 2022/04/22\n\n* Fixes PHP \u003e= 8.1 compatibility.\n* Now requires PHP \u003e= 8.1.\n\nh3. Version 0.2.0 - 2022/04/17\n\n* Register the tag for Textpattern \u003e= 4.7.0 compatibility.\n* Replaced @lastmod@ attribute with @persist@.\n* Now requires PHP \u003e= 7.2.0.\n* Now requires Textpattern \u003e= 4.7.0.\n\nh3. Version 0.1.0 - 2014/03/19\n\n* Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_memcached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocom%2Frah_memcached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_memcached/lists"}