Wouldn't some decent, representative input sample data be wonderful?
Try
Thank you. That printed all cached files from ./wp-content/cache/wpo-cache/5X.XX.XX.XX/index.html, I will try using them in CSP. I guess all nonces are there in cached content.
I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues?
NameVirtualHost *:80
#Default catch all ... (5 Replies)
I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Hello,
I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
Hi,
I need help to find values between two different fields based on $6 (NUM) AND $1 (CD), within the same ID. The result should show the values between the NUMs which will be extracted from within $3 and $2 in data.txt file below.
data.txt
ex 139 142 Sc_1000004 ID 4
CD ... (2 Replies)
can anyone help me to write a script to delete the virtualhost entry in apache vhosts.conf file:
hint: when i enter ./deletedomain test.com it should delete the test.com virtualhost entry from vhosts.conf file (2 Replies)
OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform.
I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform.
I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
I am having problems in implementing the virtual hosts here in my server. I have this one cloud dev server: Amazon Linux AMI release 2013.03 (based on RHEL like CentOS) with Apache 2.2.25 installed and I'm trying to create 2 virtual hosts: test-kalc.tk and test2-kalc.tk.
If I go to... (2 Replies)
hi,
Earlier I had this thread posted on "UNIX for Experts" Group here in unix.com, but somehow no one bothered to respond, so I thought someone might be able to help me here.
In short,
I have to make accessible a directory via SVN to all 5 developers, call it /var/www/html/beta3
... (0 Replies)
Hello everyone,
Is it possible to have a precise progress bar in zenity during the execution of the following:
find -type f \( -not -name "$file_name".md5 \) -exec md5sum '{}' \; > "$file_name".md5Currently I am using
zenity --title="Running..." --progress --pulsate --auto-close... (1 Reply)
Discussion started by: soichiro
1 Replies
LEARN ABOUT DEBIAN
mason::plugin::cache
Mason::Plugin::Cache(3pm) User Contributed Perl Documentation Mason::Plugin::Cache(3pm)NAME
Mason::Plugin::Cache - Provide component cache object and filter
VERSION
version 0.04
SYNOPSIS
my $result = $.cache->get('key');
if (!defined($result)) {
... compute $result ...
$.cache->set('key', $result, '5 minutes');
}
...
% $.Cache('key2', '1 hour') {{
<!-- this will be cached for an hour -->
% }}
DESCRIPTION
Adds a "cache" method and "Cache" filter to access a cache (CHI) object with a namespace unique to the component.
INTERP PARAMETERS
cache_defaults
Hash of parameters passed to cache constructor. Defaults to
driver=>'File', root_dir => 'DATA_DIR/cache'
which will create a basic file cache under Mason's data directory.
cache_root_class
Class used to create a cache. Defaults to CHI.
COMPONENT CLASS METHODS
cache
Returns a new cache object with the namespace set to the component's path. Parameters to this method, if any, are combined with
cache_defaults and passed to the cache_root_class constructor. The cache object is memoized when no parameters are passed.
my $result = $.cache->get('key');
REQUEST METHODS
cache
Same as calling "cache" on the current component class. This usage will be familiar to Mason 1 users.
my $result = $m->cache->get('key');
FILTERS
Cache ($key, $options, [%cache_params])
Caches the content using "$self->cache" and the supplied cache $key.
$options is a scalar or hash reference. If a scalar, it is treated as the "expires_in" duration and passed as the third argument to
"set". If it is a hash reference, it may contain name/value pairs for both "get" and "set".
%cache_params, if any, are passed to "$self->cache".
% $.Cache($my_key, '1 hour') {{
<!-- this will be cached for an hour -->
% }}
% $.Cache($my_key, { expire_if => sub { $.refresh } }, driver => 'RawMemory') {{
<!-- this will be cached until $.refresh is true -->
% }}
If neither $key nor $options are passed, the key is set to 'Default' and the cache never expires.
% $.Cache() {{
<!-- cache this forever, or until explicitly removed -->
% }}
SUPPORT
The mailing list for Mason and Mason plugins is mason-users@lists.sourceforge.net. You must be subscribed to send a message. To subscribe,
visit https://lists.sourceforge.net/lists/listinfo/mason-users <https://lists.sourceforge.net/lists/listinfo/mason-users>.
You can also visit us at "#mason" on <irc://irc.perl.org/#mason>.
Bugs and feature requests will be tracked at RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-Cache
bug-mason-plugin-cache@rt.cpan.org
The latest source code can be browsed and fetched at:
http://github.com/jonswar/perl-mason-plugin-cache
git clone git://github.com/jonswar/perl-mason-plugin-cache.git
SEE ALSO
Mason
AUTHOR
Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2011-06-24 Mason::Plugin::Cache(3pm)